{extend name="base" /}

{block name="title"} 联系我们{/block}


{block name="content"}
<!--breadcrumb_area-->
<!--<section class="breadcrumb_area parallax_effect" data-background="{$contact_header_bg_img}" style="-->
<!--          background: url({$contact_header_bg_img}) no-repeat center-->
<!--            center / cover;-->
<!--        ">-->
<!--  <div class="overlay_bg"></div>-->
<!--  <div class="container">-->
<!--    <div class="bread_content">-->
<!--      <h2>联系我们</h2>-->
<!--    </div>-->
<!--  </div>-->
<!--</section>-->
<section style="margin-top: 90px;width: 100%">
  <!--    <div class="overlay_bg"></div>-->
  <div style="width: 100% !important;">
    <div class="bread_content">
      <h3 style="color: black;">联系我们</h3>
      <h5 style="color:#c1c1c1;font-weight: normal !important;">CONTACT US</h5>
    </div>
    <div class="decoration-top-line"></div>
  </div>
</section>
<!--breadcrumb_area-->
<!--contact_area-->
<section class="contact_area sec_pad parallax_effect"  data-background='{$contact_bg_img}'
style="background: url({$contact_bg_img}) no-repeat center center / cover;">
  <div class="container">
    <div class="row flex-row-reverse">
      <div class="col-lg-6">
        <div class="contact_info_right">
          <h6>Contact Details</h6>
          <h2>联系方式</h2>
          <div class="media c_info_item">
            <div class="media-body">
              <!-- <h3>
                杭州聚力XXXXXXXXX有限公司<br/>
                Hangzhou Juli Co., Ltd
              </h3> -->
            </div>
          </div>
          <div class="media c_info_item">
            <div class="icon"><i class="fas fa-home"></i></div>
            <div class="media-body">
              <h5>地址</h5>
              <p>
                {$contact_address}
              </p>
            </div>
          </div>
          <div class="media c_info_item">
            <div class="icon"><i class="fas fa-headphones"></i></div>
            <div class="media-body">
              <h5>电话</h5>
              <p>
                <span>座机:
                  <a href="">{$contact_mobile}</a></span>
                <span>手机
                  <a href="">{$contact_phone}</a></span>
              </p>
            </div>
          </div>
          <div class="media c_info_item">
            <div class="icon"><i class="fas fa-envelope"></i></div>
            <div class="media-body">
              <h5>邮箱</h5>
              <p>
                <a href="{$contact_email}">{$contact_email}</a>
              </p>
            </div>
          </div>
        </div>
      </div>
      <div class="col-lg-6">
        <div class="contact_inner">
          <h6>Send Message</h6>
          <h2>发送消息</h2>
          <form method="post" id="contactForm" novalidate="novalidate"
            class="row contact_form">
            <div class="col-lg-12 form-group">
              <input class="form-control" type="text" id="name" name="name" placeholder="请输入您的名字" />
              <div class="error-msg" data-for="name"></div>
            </div>
            <div class="col-lg-12 form-group">
              <input class="form-control" type="email" id="email" name="email" placeholder="请输入您的邮箱" />
              <div class="error-msg" data-for="email"></div>
            </div>
            <div class="col-lg-12 form-group">
              <input class="form-control" type="text" id="phone" name="phone" placeholder="请输入您的电话" />
              <div class="error-msg" data-for="phone"></div>
            </div>
            <div class="col-lg-12 form-group">
              <textarea class="form-control" name="message" id="message" cols="30" rows="10"
                placeholder="请输入简短描述"></textarea>
                <div class="error-msg" data-for="message"></div>
            </div>
            <div class="col-lg-12 text-right form-group">
              <button type="submit" class="theme_btn">
                发送
            </button>
            </div>
          </form>
          <div id="success">您的消息已成功发送！</div>
          <div id="error">哎呀！系统错误，请重试</div>
        </div>
      </div>
    </div>
  </div>
</section>
<!--contact_area-->
<section class="map_area">
  <div id="mapBox2" class="mapBox1" data-logo="{$site_logo}" data-lat="120.111486" data-lon="30.332415"
    data-zoom="18" data-info="{$site_name}" data-address="{$contact_address}" data-mobile="0571-123456789"
    data-yb="310000">
  </div>
</section>
{/block}

{block name="script"}
<script src="assets/js/home.js"></script>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=071bedfc0c13ada68fd6fc6d30f7e8ff"></script>
<script>
  var $lat = $("#mapBox2").data("lat");
  var $lon = $("#mapBox2").data("lon");
  var $zoom = $("#mapBox2").data("zoom");
  var $logo = $("#mapBox2").data("logo");
  var $name = $("#mapBox2").data("info");
  var $address = $("#mapBox2").data("address");
  var $mobile = $("#mapBox2").data("mobile");
  var $yb = $("#mapBox2").data("yb");
  var position = new AMap.LngLat($lat, $lon);
  var map = new AMap.Map("mapBox2", {
    zoom: $zoom,
    center: position,
    resizeEnable: true
  });

  //在指定位置打开信息窗体
  function openInfo() {
    //构建信息窗体中显示的内容
    var info = [];
    info.push("<div class='input-card content-window-card'><div><img style=\"float:left;width:80px;margin-right: 20px;\" src=\" " + $logo + " \"/></div> ");
    info.push("<div style=\"padding:0px 0px 0px 0px;\"><h4  style=\" font-size:18px !important;\">" + $name + "</h4>");
    info.push("<p class='input-item'>电话 : " + $mobile + "   邮编 : " + $yb + "</p>");
    info.push("<p class='input-item'>地址 :" + $address + "</p></div></div>");

    infoWindow = new AMap.InfoWindow({
      content: info.join("")  //使用默认信息窗体框样式，显示信息内容
    });

    infoWindow.open(map, map.getCenter());
  }
  openInfo()
</script>
{/block}